<?php
namespace Admin\Controller;

use Common\Controller\AdminController;
use Common\Model\ConfigModel;

class ConfigController extends AdminController {

    // 系统设置
    public function set() {
        $model = new ConfigModel();
        if(IS_POST){
            $data = I('post.','','');
            $this->store($model,$data);
        }

        $res = $model->find(1);
        $this->field = $res['system'];
        $this->display();
    }

}